import 'package:flutter/material.dart';
import 'package:get/get.dart';

class isdata extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
      alignment: Alignment.center,
      margin: EdgeInsets.only(top: 100),
      child: Text('暂无数据',
          style: TextStyle(fontSize: 16, color: Color(0XFF999999))),
    );
  }
}

PayWidget(text,type) { 
  Get.dialog(
    AlertDialog(
      backgroundColor:Color(0XFFFFFFFF),
      shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(10)),
      content:
      Container(
        height: 80,
        width: 120,
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          crossAxisAlignment: CrossAxisAlignment.center,
          children: [
            Text('$text',style: TextStyle(fontSize:20),textAlign: TextAlign.center,),
            // Text('是否前往开通？',style: TextStyle(fontSize:20)),
          ],
        ) ,
      )
         ,
      actions: [
        GestureDetector(
          onTap: (){
            if(type=='1'){
             Get.back();
            Get.toNamed('/certification');
            }else{
               Get.back();
              Get.toNamed('/web_tabs/shopping/mall_wallet');
            }
            
          },
          child: Container(
          alignment: Alignment.center,
          margin: EdgeInsets.only(bottom: 20),
          padding: EdgeInsets.symmetric(horizontal: 15,vertical:10),
             decoration: BoxDecoration(
                  borderRadius: BorderRadius.circular((35)),
                  gradient: LinearGradient(
                  colors: [
                  Color(0xff2189E7),
                  Color(0xffBF67F8),
                  ], // 定义颜色列表
                  begin: Alignment.topLeft, // 渐变开始的位置
                  end: Alignment.bottomRight, // 渐变结束的位置
                  ),
          ),
          child: Text('确定',style: TextStyle(color: Color(0XFFFFFFFF))),
        ),
        )
        ,
        GestureDetector(
          onTap: (){
            Get.back();
          },
          child:  Container(
          alignment: Alignment.center,
          child: Text('取消'),
        ),
        )
       ,
      ],
    ),
  );
}
